package com.inifitness.admin.core.config.resubmit.annotation;


import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 防止重复提交注解
 *
 * @author sunjinfeng
 * @since 2024/04/18 11:00:00
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface PreventDuplicateSubmit {

  /**
   * 防重提交锁过期时间(秒)
   * <p>
   * 默认5秒内不允许重复提交
   */
  int expire() default 5;

}
